package com.hl.service.serviceImpl;

import com.hl.domain.Teacher;
import com.hl.mapper.TeacherMapper;
import com.hl.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> AllTeacherList() {


        List<Teacher> teachers = teacherMapper.AllTeacherList();

        return teachers;
    }

    @Override
    public List<Teacher> AllteacherLike(String name) {
        List<Teacher> teachers = teacherMapper.AllteacherLike(name);
        return teachers;

    }

    @Override
    public int insertSelective(Teacher record) {

     return teacherMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Teacher record) {
        return teacherMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return teacherMapper.deleteByPrimaryKey(id);
    }




}
